import { Controller, Get, Post, Body, Patch, Param, Delete } from '@nestjs/common';
import { MiddleWareTestService } from './middle-ware-test.service';
import { CreateMiddleWareTestDto } from './dto/create-middle-ware-test.dto';
import { UpdateMiddleWareTestDto } from './dto/update-middle-ware-test.dto';

@Controller('middleWt')
export class MiddleWareTestController {
  constructor(private readonly middleWareTestService: MiddleWareTestService) { }

  @Post()
  create(@Body() createMiddleWareTestDto: CreateMiddleWareTestDto) {
    return this.middleWareTestService.create(createMiddleWareTestDto);
  }

  @Get()
  findAll() {
    return this.middleWareTestService.findAll();
  }

  @Get(':id')
  findOne(@Param('id') id: string) {
    return this.middleWareTestService.findOne(+id);
  }

  @Patch(':id')
  update(@Param('id') id: string, @Body() updateMiddleWareTestDto: UpdateMiddleWareTestDto) {
    return this.middleWareTestService.update(+id, updateMiddleWareTestDto);
  }

  @Delete(':id')
  remove(@Param('id') id: string) {
    return this.middleWareTestService.remove(+id);
  }
}
